package is.ru.honn.rumblr.util;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;

public class RumblrProperties extends PropertiesConfiguration
{
  public RumblrProperties(String filename) throws ConfigurationException
  {
    this.setFileName(filename);
    this.load();
  }

  public RumblrProperties() throws ConfigurationException
  {
    super("is/ru/honn/rumblr/util/default-rumblr-config.properties");
  }

  public String getReadPath()
  {
    return getString("path.read", "http://staff.tumblr.com/api/read");
  }
}
